package com.atguigu.gulimall.authserver.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.authserver.vo.HttpResponseVo;
import com.atguigu.gulimall.authserver.vo.RegisterVo;
import com.atguigu.gulimall.authserver.vo.UserLoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeign {
    @PostMapping("/member/member/register")
    public R register(@RequestBody RegisterVo registerVo);

    @PostMapping("/member/member/login")
    public R Login(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("/member/member/weibo/login")
    public R login(@RequestBody HttpResponseVo responseVo);
}
